import asyncComponent from "@/components/asyncComponent";
const b = {
  path: "/a/b",
  // exact: true, //这个要注释，不然后面的/a/b/d匹配不到
  component: asyncComponent(() => import("./index.js")),
  routes: [],
};
const files = require.context("./", true, /\.\/[^/]+\/[^/]+\/_route\.js$/);
files.keys().map((item) => {
  return b.routes.push(files(item).default);
});

export default b;
